﻿@model List<MyCompanyName.AbpZeroTemplate.Prm.Project.Dto.ProjectWeekTeam>
@{
    ViewBag.Title = "ProjectWeekDoc";
    Layout = null;
    var weeks = Model.Select(x => x.week).Distinct().ToList();
}
<title>@ViewBag.ProNo</title>
<style type="text/css">
        /*

        TableCloth
        by Alen Grakalic, brought to you by cssglobe.com

    */

        /* general styles */

      .summarydiv  table, .summarydiv   td {
            font: 100% Arial, Helvetica, sans-serif;
        }

       .summarydiv  table {
            width: 100%;
            border-collapse: collapse;
            margin: 1em 0;
        }

       .summarydiv  th, .summarydiv   td {
            text-align: left;
            padding: .5em;
            border: 1px solid #fff;
        }

       .summarydiv  th {
            background: #328aa4 url(tr_back.gif) repeat-x;
            color: #fff;
        }

       .summarydiv  td {
            background: #e5f1f4;
        }

      
</style>
<div class="summarydiv">
    @foreach (var item in weeks)
    {
        var reports = Model.Where(x => x.week == item).ToList();
        <hr />
        <p>@item 周 @Html.Raw("(") @reports[0].dts.ToShortDateString()@Html.Raw("~") @reports[0].dte.ToShortDateString() @Html.Raw(")") </p>
        <table>
            <tr><th>周报</th></tr>

            @foreach (var report in reports)
            {
                <tr><td>@Html.Raw(report.FileName)</td></tr>
            }

        </table>
    }
</div>